<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Seq_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-seq_num" class="form-control" name="row[seq_num]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cover_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cover_list" class="form-control" name="row[cover_list]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Year')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-year" class="form-control" name="row[year]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serial_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="serialStatusList" item="vo"}
            <label for="row[serial_status]-{$key}"><input id="row[serial_status]-{$key}" name="row[serial_status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Recommendation')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-recommendation" class="form-control" name="row[recommendation]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" class="form-control " rows="5" name="row[description]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tag_list')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-tag_list" class="form-control selectpicker" multiple="" name="row[tag_list][]">
                {foreach name="tagListList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Qualification')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-qualification" class="form-control selectpicker" name="row[qualification]">
                {foreach name="qualificationList" item="vo"}
                    <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Record_info_json')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <table class="table fieldlist" data-name="row[record_info_json]" data-template="row[record_info_json]tpl">
                <tr>
                    <td>{:__('record_info_json name')}</td>
<td>{:__('record_info_json blurb')}</td>
<td>{:__('record_info_json content')}</td>
                    <td width="90">{:__('Operate')}</td>
                </tr>
                <tr><td colspan="4">
                <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a>
                <textarea name="row[record_info_json]" class="form-control hide" cols="30" rows="5">[{"name":"license_num","blurb":"许可证号","content":""},{"name":"registration_num","blurb":"登记号","content":""},{"name":"ordinary_record_num","blurb":"普通备案号","content":""},{"name":"key_record_num","blurb":"重点备案号","content":""}]</textarea>
                </td></tr>
            </table>
            <script type="text/html" id="row[record_info_json]tpl">
                <tr>
                    <td><input type="text" name="<%=name%>[<%=index%>][name]" class="form-control" value="<%=row.name%>"/></td>
<td><input type="text" name="<%=name%>[<%=index%>][blurb]" class="form-control" value="<%=row.blurb%>"/></td>
<td><input type="text" name="<%=name%>[<%=index%>][content]" class="form-control" value="<%=row.content%>"/></td>
                    <td width="90">
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </td>
                </tr>
            </script>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sub_content_json')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <table class="table fieldlist" data-name="row[sub_content_json]" data-template="row[sub_content_json]tpl">
                <tr>
                    <td>{:__('sub_content_json title')}</td>
<td>{:__('sub_content_json seq')}</td>
<td>{:__('sub_content_json cover_list')}</td>
<td>{:__('sub_content_json media_id')}</td>
<td>{:__('sub_content_json episode_id')}</td>
                    <td width="90">{:__('Operate')}</td>
                </tr>
                <tr><td colspan="6">
                <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a>
                <textarea name="row[sub_content_json]" class="form-control hide" cols="30" rows="5"></textarea>
                </td></tr>
            </table>
            <script type="text/html" id="row[sub_content_json]tpl">
                <tr>
                    <td><input type="text" name="<%=name%>[<%=index%>][title]" class="form-control" value="<%=row.title%>"/></td>
<td><input type="text" name="<%=name%>[<%=index%>][seq]" class="form-control" value="<%=row.seq%>"/></td>
<td><input type="text" name="<%=name%>[<%=index%>][cover_list]" class="form-control" value="<%=row.cover_list%>"/></td>
<td><input type="text" name="<%=name%>[<%=index%>][media_id]" class="form-control" value="<%=row.media_id%>"/></td>
<td><input type="text" name="<%=name%>[<%=index%>][episode_id]" class="form-control" value="<%=row.episode_id%>"/></td>
                    <td width="90">
                        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                        <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                    </td>
                </tr>
            </script>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Resource_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-resource_id" data-source="resource/index" class="form-control" name="row[resource_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Version')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-version" class="form-control" name="row[version]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Album_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-album_id" data-source="album/index" class="form-control" name="row[album_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
